import http from '@/utils/http/axios'
import {ContentTypeEnum} from '@/enums/httpEnum'

enum Api {
    getRegistryValue ="/registry/value",
    updateRegistry="/registry/update"
}

export function GetRegistryValue(params: any){
    return http.request({
        url: Api.getRegistryValue,
        method: "POST",
        responseType: "blob",
        params
    })
}

export function UpdateRegistry(params: any, file: any){
    return http.uploadFiles({
        url: Api.updateRegistry,
        method: "POST",
        params
    },file,{
        isTransformRequestResult:false
    })
}
